package com.itmuch.cloud.feign;

import com.itmuch.config.AuthConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * eureka中的一些服务信息访问地址
 * http://localhost:8761/eureka/apps/
 * http://localhost:8761/eureka/apps/microservice-consumer-movie-feign-custom
 *
 * @author: chenhs
 * @date: Created in 7:14 2020/1/24
 **/
@FeignClient(name = "xxoo", url = "http://localhost:8761", configuration = AuthConfiguration.class)
public interface FeignClient2 {

    @RequestMapping(value = "/eureka/apps/{serviceName}")
    String findServiceInfoFromEurekaByServiceName(@PathVariable ("serviceName") String serviceName);

}
